﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Root.Master" Inherits="System.Web.Mvc.ViewPage<HomepageViewModel>" %>
<%@ Import Namespace="ASPItalia.ModelVirtualCasting" %>
<%@ Import Namespace="ASPItalia.ModelVirtualCasting.Web.Models" %>
<%@ Import Namespace="ASPItalia.ModelVirtualCasting.Web.Utils" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">Benvenuto!</asp:Content>

<asp:Content ContentPlaceHolderID="Head" runat="server">
	<script type="text/javascript" src="/Scripts/canvas.video.js"></script>
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
	<section>
		<div id="homeContent">
			<article>
				<header><h2>Benvenuto in ModelVirtualCasting! La tua agenzia di modelle preferita!</h2></header>
			</article>
	
			<div class="modelsCarousel homeCatalog">
				<% Html.RenderPartial("ModelsPanel", this.Model.Models); %>
			</div>
			
			<%-- VECCHIO IN SILVERLIGHT --%>
			<%-- Html.RenderPartial("modelsCarousel"); --%>

			<%-- BANNER VIDEO --%>
			<video src="/images/videos/sample.mp4" id="video"
			 style="display: none" autoplay loop>

			</video>
            <canvas id="canvas">
            </canvas>

            <script type="text/javascript">
            	setupVideo();
            </script>
			
			<% Html.RenderPartial("NewsPanel", Model.News); %>
			
		</div>
	</section>

<%--	<section>
		<div class="homeCatalog">
			<% Html.RenderPartial("ModelsPanel", this.Model.Models); %>
		</div>
	</section>--%>
</asp:Content>